package ro.gateway.aida.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/** 
 * OrgSelectorForm.java created by EasyStruts - XsltGen.
 * http://easystruts.sf.net
 * created on 10-09-2003
 * 
 * XDoclet definition:
 * @struts:form name="orgSelectorForm"
 */
public class OrgSelectorForm extends ActionForm {

	// --------------------------------------------------------- Instance Variables

	private int typeSearch;
	private String textSearch;
	private long[] selectedOrgs;
	
	private String quickName;
	private int quickType;
	private String quickComment;
	
	
	
	// --------------------------------------------------------- Methods

	/** 
	 * Method validate
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 * @return ActionErrors
	 */
	/*public ActionErrors validate(
		ActionMapping mapping,
		HttpServletRequest request) {

	}*/

	/** 
	 * Method reset
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		typeSearch=-1;
		textSearch="";
		selectedOrgs=null;
		
		quickName="";
		quickType=-1;
		quickComment="";
	}


	/**
	 * @return
	 */
	public long[] getSelectedOrgs() {
		return selectedOrgs;
	}

	/**
	 * @return
	 */
	public String getTextSearch() {
		return textSearch;
	}

	/**
	 * @return
	 */
	public int getTypeSearch() {
		return typeSearch;
	}

	/**
	 * @param strings
	 */
	public void setSelectedOrgs(long[] ints) {
		selectedOrgs = ints;
	}

	/**
	 * @param string
	 */
	public void setTextSearch(String string) {
		textSearch = string;
	}

	/**
	 * @param i
	 */
	public void setTypeSearch(int i) {
		typeSearch = i;
	}

	/**
	 * @return Returns the quickComment.
	 */
	public String getQuickComment() {
		return quickComment;
	}
	/**
	 * @param quickComment The quickComment to set.
	 */
	public void setQuickComment(String quickComment) {
		this.quickComment = quickComment;
	}
	/**
	 * @return Returns the quickName.
	 */
	public String getQuickName() {
		return quickName;
	}
	/**
	 * @param quickName The quickName to set.
	 */
	public void setQuickName(String quickName) {
		this.quickName = quickName;
	}
	/**
	 * @return Returns the quickType.
	 */
	public int getQuickType() {
		return quickType;
	}
	/**
	 * @param quickType The quickType to set.
	 */
	public void setQuickType(int quickType) {
		this.quickType = quickType;
	}
}
